<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: yahoo  YAHOO.util.YAHOO.lang   (YUI Library)</title>

	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
        <h3>YAHOO Global&nbsp; <span class="subtitle">2.7.0b</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_yahoo.html" title="yahoo">yahoo</a>
                 &gt; YAHOO.util.YAHOO.lang 
                
        <form onsubmit="return false">
            <div id="propertysearch">
                搜索: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">显示 Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">显示 Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">显示 Deprecated</label></span>
                </fieldset>
            </form>

                    <h2>
                        

                        
                        
                            Class <b property="yui:name">YAHOO.util.YAHOO.lang</b>
                        <span class="extends">
                        </span>

                    </h2>
                    <!-- class tree goes here -->
                    
                
  

                    <div class="summary description" property="yui:description">
                        库所使用的语言和扩展
                    </div>

                    
                    <div rel="yui:properties" resource="#properties">

                    </div>

                    <div rel="yui:methods" resource="#methods">
                        <div class="section method details">
                            <h3 id="methods">Methods</h3>
                            <div class="content">
                                    <div class="" rel="yui:method" resource="#method_augment">
                                    <h4>
                                        <a name="method_augment">augment</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                         static 
                                        
                                        void
                                            <strong property="yui:name">augment</strong>
                                           (
                                                
                                                        
                                                         r
                                                    
                                                
                                                        , 
                                                         s
                                                    
                                                
                                                        , 
                                                         可以指定提供对象的某个或多个添加给接收对象的属性和方法
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	和 YAHOO.lang.augmentObject一样, 只是该方法只执行原型属性，该方法是 augmentProto的别名.
请查看 YAHOO.lang.augmentObject.
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">r</span>
                                                        &lt;<span property="yui:type">Function</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  接收属性的对象</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">s</span>
                                                        &lt;<span property="yui:type">Function</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  提供属性的方法</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">可以指定提供对象的某个或多个添加给接收对象的属性和方法</span>
                                                        &lt;<span property="yui:type">String*|boolean</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 
如果没有指定该参数，提供属性的对象的所有属性将被添加给接收对象，如果接收对象本来已经有了某个属性，则不添加该属性
如果该参数是true，所有提供对象的属性和方法将被添加到接收对象，如果接收对象已经有了某个属性则覆盖原有属性。</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        void
                                                    </code></dt>
                                                    <dd property="yui:returnInfo"></dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_augmentObject">
                                    <h4>
                                        <a name="method_augmentObject">augmentObject</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                         static 
                                        
                                        void
                                            <strong property="yui:name">augmentObject</strong>
                                           (
                                                
                                                        
                                                         r
                                                    
                                                
                                                        , 
                                                         s
                                                    
                                                
                                                        , 
                                                         可以指定提供对象的某个或多个添加给接收对象的属性和方法
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	把提供对象的所有属性添加到接收对象身上，如果接收对象已有某属性则不添加该属性
也可以通过第三个参数指定添加提供对象中的某一个或多个方法和属性给接收对象，如果接收对象已经有了该方法或属性则覆盖原有方法和属性 
如果第三个参数是true，接收对象原有的所有属性将被新属性覆盖。
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">r</span>
                                                        &lt;<span property="yui:type">Function</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  接收属性的对象</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">s</span>
                                                        &lt;<span property="yui:type">Function</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  提供属性的对象</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">可以指定提供对象的某个或多个添加给接收对象的属性和方法</span>
                                                        &lt;<span property="yui:type">String*|boolean</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 
如果没有指定该参数，提供属性的对象的所有属性将被添加给接收对象，如果接收对象本来已经有了某个属性，则不添加该属性
如果该参数是true，所有提供对象的属性和方法将被添加到接收对象，如果接收对象已经有了某个属性则覆盖原有属性。</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        void
                                                    </code></dt>
                                                    <dd property="yui:returnInfo"></dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_augmentProto">
                                    <h4>
                                        <a name="method_augmentProto">augmentProto</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                         static 
                                        
                                        void
                                            <strong property="yui:name">augmentProto</strong>
                                           (
                                                
                                                        
                                                         r
                                                    
                                                
                                                        , 
                                                         s
                                                    
                                                
                                                        , 
                                                         可以指定提供对象的某个或多个添加给接收对象的属性
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	和 YAHOO.lang.augmentObject 一样, 不同的是该方法只添加原型属性
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">r</span>
                                                        &lt;<span property="yui:type">Function</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  接收属性的对象</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">s</span>
                                                        &lt;<span property="yui:type">Function</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  提供属性的对象</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">可以指定提供对象的某个或多个添加给接收对象的属性</span>
                                                        &lt;<span property="yui:type">String*|boolean</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 
如果没有指定该参数，提供属性的对象的所有属性将被添加给接收对象，如果接收对象本来已经有了某个属性，则不添加该属性
如果该参数是true，所有提供对象的属性将被添加到接收对象，如果接收对象已经有了某个属性则覆盖原有属性。</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        void
                                                    </code></dt>
                                                    <dd property="yui:returnInfo"></dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_dump">
                                    <h4>
                                        <a name="method_dump">dump</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        String
                                            <strong property="yui:name">dump</strong>
                                           (
                                                
                                                        
                                                         o
                                                    
                                                
                                                        , 
                                                         d
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	返回对象或数组的字符串表达式.
其他形式的对象将被原样返回.  数组会被索引
用对象符号来表示关联数组
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">o</span>
                                                        &lt;<span property="yui:type">Object</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  要转化的对象</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">d</span>
                                                        &lt;<span property="yui:type">int</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  要转化的子对象深度, 默认转化 3 级子对象</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        String
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">转化结果</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_extend">
                                    <h4>
                                        <a name="method_extend">extend</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                         static 
                                        
                                        void
                                            <strong property="yui:name">extend</strong>
                                           (
                                                
                                                        
                                                         subc
                                                    
                                                
                                                        , 
                                                         superc
                                                    
                                                
                                                        , 
                                                         overrides
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	给子类建立原型，构造器和父类属性，并使其能够找到构造器和方法的继承方案
静态成员不会被继承
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">subc</span>
                                                        &lt;<span property="yui:type">Function</span>&gt;
                                                        </code>
                                                        <span property="yui:description">   待修改的对象（子对象）</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">superc</span>
                                                        &lt;<span property="yui:type">Function</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 继承的对象（父对象）</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">overrides</span>
                                                        &lt;<span property="yui:type">Object</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  添加到子类原型中的额外属性和方法，如果该属性
和方法已经存在则覆盖原有属性或方法</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        void
                                                    </code></dt>
                                                    <dd property="yui:returnInfo"></dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_hasOwnProperty">
                                    <h4>
                                        <a name="method_hasOwnProperty">hasOwnProperty</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        boolean
                                            <strong property="yui:name">hasOwnProperty</strong>
                                           (
                                                
                                                        
                                                         o
                                                    
                                                
                                                        , 
                                                         prop
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	检测某个属性是不是对象自身的，如果对象不存在该属性或者该属性是从原型继承的则返回false，
这个抽象方法可以让Safari 1.3.x浏览器也具有hasOwnProperty功能。
YAHOO.lang.hasOwnProperty和Object.prototype.hasOwnProperty也存在一些差异，
当某个属性同时被添加到实体和原型上的时候，返回的结果是不一样的
<pre>
var A = function() {};
A.prototype.foo = 'foo';
var a = new A();
a.foo = 'foo';
alert(a.hasOwnProperty('foo')); // true
alert(YAHOO.lang.hasOwnProperty(a, 'foo')); // false when using fallback
</pre>
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">o</span>
                                                        &lt;<span property="yui:type">any</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 待检测对象</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">prop</span>
                                                        &lt;<span property="yui:type">string</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  待检测的属性</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        boolean
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">结果</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_isArray">
                                    <h4>
                                        <a name="method_isArray">isArray</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        boolean
                                            <strong property="yui:name">isArray</strong>
                                           (
                                                
                                                        
                                                         o
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	检测对象是不是数组.
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">o</span>
                                                        &lt;<span property="yui:type">any</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 待检测对象</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        boolean
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">测试结果，（如果是数组则返回true，反之则返回false）</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_isBoolean">
                                    <h4>
                                        <a name="method_isBoolean">isBoolean</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        boolean
                                            <strong property="yui:name">isBoolean</strong>
                                           (
                                                
                                                        
                                                         o
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	检测对象是不是布尔对象
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">o</span>
                                                        &lt;<span property="yui:type">any</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 待检测对象</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        boolean
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">测试结果，（如果是布尔值则返回true，反之则返回false）</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_isFunction">
                                    <h4>
                                        <a name="method_isFunction">isFunction</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        boolean
                                            <strong property="yui:name">isFunction</strong>
                                           (
                                                
                                                        
                                                         o
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	检测对象是不是函数.
注：IE认为某些函数是对象:
var obj = document.createElement("object");
YAHOO.lang.isFunction(obj.getAttribute) // reports false in IE
var input = document.createElement("input"); // append to body
YAHOO.lang.isFunction(input.focus) // reports false in IE
如果遇到这类函数，你还需要额外的检测
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">o</span>
                                                        &lt;<span property="yui:type">any</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 待检测对象</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        boolean
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">测试结果，（如果是函数则返回true，反之则返回false）</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_isNull">
                                    <h4>
                                        <a name="method_isNull">isNull</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        boolean
                                            <strong property="yui:name">isNull</strong>
                                           (
                                                
                                                        
                                                         o
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	检测对象是不是空对象
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">o</span>
                                                        &lt;<span property="yui:type">any</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 待检测对象</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        boolean
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">测试结果，（如果是空对象则返回true，反之则返回false）</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_isNumber">
                                    <h4>
                                        <a name="method_isNumber">isNumber</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        boolean
                                            <strong property="yui:name">isNumber</strong>
                                           (
                                                
                                                        
                                                         o
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	检测对象是不是数字
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">o</span>
                                                        &lt;<span property="yui:type">any</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 待检测对象</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        boolean
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">测试结果，（如果是数字则返回true，反之则返回false）</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_isObject">
                                    <h4>
                                        <a name="method_isObject">isObject</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        boolean
                                            <strong property="yui:name">isObject</strong>
                                           (
                                                
                                                        
                                                         o
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	检测对象是不是对象
or function
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">o</span>
                                                        &lt;<span property="yui:type">any</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 待检测对象</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        boolean
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">测试结果，（如果是对象则返回true，反之则返回false）</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_isString">
                                    <h4>
                                        <a name="method_isString">isString</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        boolean
                                            <strong property="yui:name">isString</strong>
                                           (
                                                
                                                        
                                                         o
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	检测对象是不是字符串
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">o</span>
                                                        &lt;<span property="yui:type">any</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 待检测对象</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        boolean
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">测试结果，（如果是字符串则返回true，反之则返回false）</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_isUndefined">
                                    <h4>
                                        <a name="method_isUndefined">isUndefined</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        boolean
                                            <strong property="yui:name">isUndefined</strong>
                                           (
                                                
                                                        
                                                         o
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	检测对象有没有定义
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">o</span>
                                                        &lt;<span property="yui:type">any</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 待检测对象</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        boolean
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">测试结果，（如果未定义则返回true，反之则返回false）</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_isValue">
                                    <h4>
                                        <a name="method_isValue">isValue</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        boolean
                                            <strong property="yui:name">isValue</strong>
                                           (
                                                
                                                        
                                                         o
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	检测合法的非空值的方法.
null,undefined,NaN返回false,其他值返回true，包括（0,false,''）
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">o</span>
                                                        &lt;<span property="yui:type">any</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  需要检测的元素</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        boolean
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">如果是 null，undefined，NaN，返回true，其他都返回 false</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_later">
                                    <h4>
                                        <a name="method_later">later</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        void
                                            <strong property="yui:name">later</strong>
                                           (
                                                
                                                        
                                                         when
                                                    
                                                
                                                        , 
                                                         o
                                                    
                                                
                                                        , 
                                                         fn
                                                    
                                                
                                                        , 
                                                         data
                                                    
                                                
                                                        , 
                                                         periodic
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	在指定的t（毫秒）后，在提供的对象上执行某函数， 如果periodic被设置为true，则每隔t（毫秒）重复执行该函数
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">when</span>
                                                        &lt;<span property="yui:type">int</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  执行该函数的延迟时间（毫秒为单位）</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">o</span>
                                                        &lt;<span property="yui:type">object</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 上下文环境对象</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">fn</span>
                                                        &lt;<span property="yui:type">Function|String</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  将要执行的函数名称或者对象“o”的方法</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">data</span>
                                                        &lt;<span property="yui:type">object</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> [Array]	传递给函数的参数. 最好是个简单的元素或者数组，
如果是数组，函数将遍历执行数组中的每个元素，而且数组需要用[]的形式</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">periodic</span>
                                                        &lt;<span property="yui:type">boolean</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  如果设置为true，函数将按照指定的时间间隔重复执行，直到被取消 
@返回一个定时器对象，该对象执行cancel()方法可以停止定时器</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        void
                                                    </code></dt>
                                                    <dd property="yui:returnInfo"></dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_merge">
                                    <h4>
                                        <a name="method_merge">merge</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        
                                            <strong property="yui:name">merge</strong>
                                           (
                                                
                                                        
                                                         arguments
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	返回一个包含所有提供对象的所有属性的新对象
后面对象的属性将覆盖前面对象的属性
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">arguments</span>
                                                        &lt;<span property="yui:type">Object*</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  需要合并的对象</span>
                                                        </dd>
                                                </dl>



             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_substitute">
                                    <h4>
                                        <a name="method_substitute">substitute</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        String
                                            <strong property="yui:name">substitute</strong>
                                           (
                                                
                                                        
                                                         s
                                                    
                                                
                                                        , 
                                                         o
                                                    
                                                
                                                        , 
                                                         f
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	先在字符串里放一些替代变量. 该方法将扫描整个字符串寻找包在{}之间的占位表达式 
如果该表达式存在，这个表达式将被看作对象的key，如果该表达式里有空格，那么空格前的单词被看作key 
其余部分被当做参数传递给一个可选的函数来运算出结果值value（假如还有额外的信息来确定最终值的时候）
如果对象中该key的value或者通过函数运算出的结果value是个字符串，数字，或者对象值
该value值将替换占位表达式，然后重复执行自身方法直到替换完，
如果该值是个对象，并且已经被覆写了，就调用toString方法，否则就用dump方法转化为key/value对
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">s</span>
                                                        &lt;<span property="yui:type">String</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  要替换的字符串.</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">o</span>
                                                        &lt;<span property="yui:type">Object</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  包含替代值的对象</span>
                                                        </dd>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">f</span>
                                                        &lt;<span property="yui:type">Function</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  （可选）该函数将在每个匹配成功的时候，
接收key，value，还有占位表达式空格后面的参数值，然后运算出结果</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        String
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">替换后的字符串</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                                    <div class="" rel="yui:method" resource="#method_trim">
                                    <h4>
                                        <a name="method_trim">trim</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                        
                                        
                                        string
                                            <strong property="yui:name">trim</strong>
                                           (
                                                
                                                        
                                                         s
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	该方法返回一个首尾去除空格的字符串，如果输入的不是字符串，将被原样输出
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">s</span>
                                                        &lt;<span property="yui:type">string</span>&gt;
                                                        </code>
                                                        <span property="yui:description">  要处理的字符串</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        string
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">处理后的字符串</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                            </div>
                        </div>

                    </div>

                    <div rel="yui:events" resource="#events">


                    </div>

                    <div rel="yui:attributes" resource="#configattributes">

                    </div>

			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>模块</h4>
                        <ul class="content">
                                <li class=""><a href="module_animation.html" title="animation">animation</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_element.html" title="element">element</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class="selected"><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>类</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.util.YAHOO.html" title="YAHOO.util.YAHOO">YAHOO.util.YAHOO</a></li>
                                <li class=""><a href="YAHOO.util.YAHOO.env.html" title="YAHOO.util.YAHOO.env">YAHOO.util.YAHOO.env</a></li>
                                <li class=""><a href="YAHOO.util.YAHOO.env.ua.html" title="YAHOO.util.YAHOO.env.ua">YAHOO.util.YAHOO.env.ua</a></li>
                                <li class="selected"><a href="YAHOO.util.YAHOO.lang.html" title="YAHOO.util.YAHOO.lang">YAHOO.util.YAHOO.lang</a></li>
                                <li class=""><a href="YAHOO.util.YAHOO_config.html" title="YAHOO.util.YAHOO_config">YAHOO.util.YAHOO_config</a></li>
                        </ul>
                    </div>



                    <div id="methodsList" class="module">
                        <h4>方法</h4>
                        <ul class="content">        
                                <li class=""><a href="#method_augment" title="augment">augment</a></li>
                                <li class=""><a href="#method_augmentObject" title="augmentObject">augmentObject</a></li>
                                <li class=""><a href="#method_augmentProto" title="augmentProto">augmentProto</a></li>
                                <li class=""><a href="#method_dump" title="dump">dump</a></li>
                                <li class=""><a href="#method_extend" title="extend">extend</a></li>
                                <li class=""><a href="#method_hasOwnProperty" title="hasOwnProperty">hasOwnProperty</a></li>
                                <li class=""><a href="#method_isArray" title="isArray">isArray</a></li>
                                <li class=""><a href="#method_isBoolean" title="isBoolean">isBoolean</a></li>
                                <li class=""><a href="#method_isFunction" title="isFunction">isFunction</a></li>
                                <li class=""><a href="#method_isNull" title="isNull">isNull</a></li>
                                <li class=""><a href="#method_isNumber" title="isNumber">isNumber</a></li>
                                <li class=""><a href="#method_isObject" title="isObject">isObject</a></li>
                                <li class=""><a href="#method_isString" title="isString">isString</a></li>
                                <li class=""><a href="#method_isUndefined" title="isUndefined">isUndefined</a></li>
                                <li class=""><a href="#method_isValue" title="isValue">isValue</a></li>
                                <li class=""><a href="#method_later" title="later">later</a></li>
                                <li class=""><a href="#method_merge" title="merge">merge</a></li>
                                <li class=""><a href="#method_substitute" title="substitute">substitute</a></li>
                                <li class=""><a href="#method_trim" title="trim">trim</a></li>
                        </ul>
                    </div>



            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"url": "YAHOO.util.YAHOO.env.ua.html#property_air", "access": "", "host": "YAHOO.util.YAHOO.env.ua", "type": "property", "name": "air"}, {"url": "YAHOO.util.YAHOO.lang.html#method_augment", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "augment"}, {"url": "YAHOO.util.YAHOO.lang.html#method_augmentObject", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "augmentObject"}, {"url": "YAHOO.util.YAHOO.lang.html#method_augmentProto", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "augmentProto"}, {"url": "YAHOO.util.YAHOO.env.ua.html#property_caja", "access": "", "host": "YAHOO.util.YAHOO.env.ua", "type": "property", "name": "caja"}, {"url": "YAHOO.util.YAHOO.lang.html#method_dump", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "dump"}, {"url": "YAHOO.util.YAHOO.lang.html#method_extend", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "extend"}, {"url": "YAHOO.util.YAHOO.env.ua.html#property_gecko", "access": "", "host": "YAHOO.util.YAHOO.env.ua", "type": "property", "name": "gecko"}, {"url": "YAHOO.util.YAHOO.env.html#method_getVersion", "access": "", "host": "YAHOO.util.YAHOO.env", "type": "method", "name": "getVersion"}, {"url": "YAHOO.util.YAHOO.lang.html#method_hasOwnProperty", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "hasOwnProperty"}, {"url": "YAHOO.util.YAHOO.env.ua.html#property_ie", "access": "", "host": "YAHOO.util.YAHOO.env.ua", "type": "property", "name": "ie"}, {"url": "YAHOO.util.YAHOO_config.html#property_injecting", "access": "", "host": "YAHOO.util.YAHOO_config", "type": "property", "name": "injecting"}, {"url": "YAHOO.util.YAHOO.lang.html#method_isArray", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "isArray"}, {"url": "YAHOO.util.YAHOO.lang.html#method_isBoolean", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "isBoolean"}, {"url": "YAHOO.util.YAHOO.lang.html#method_isFunction", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "isFunction"}, {"url": "YAHOO.util.YAHOO.lang.html#method_isNull", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "isNull"}, {"url": "YAHOO.util.YAHOO.lang.html#method_isNumber", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "isNumber"}, {"url": "YAHOO.util.YAHOO.lang.html#method_isObject", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "isObject"}, {"url": "YAHOO.util.YAHOO.lang.html#method_isString", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "isString"}, {"url": "YAHOO.util.YAHOO.lang.html#method_isUndefined", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "isUndefined"}, {"url": "YAHOO.util.YAHOO.lang.html#method_isValue", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "isValue"}, {"url": "YAHOO.util.YAHOO.lang.html#method_later", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "later"}, {"url": "YAHOO.util.YAHOO_config.html#property_listener", "access": "", "host": "YAHOO.util.YAHOO_config", "type": "property", "name": "listener"}, {"url": "YAHOO.util.YAHOO.env.html#property_listeners", "access": "", "host": "YAHOO.util.YAHOO.env", "type": "property", "name": "listeners"}, {"url": "YAHOO.util.YAHOO_config.html#property_load", "access": "", "host": "YAHOO.util.YAHOO_config", "type": "property", "name": "load"}, {"url": "YAHOO.util.YAHOO_config.html#property_locale", "access": "", "host": "YAHOO.util.YAHOO_config", "type": "property", "name": "locale"}, {"url": "YAHOO.util.YAHOO.html#method_log", "access": "", "host": "YAHOO.util.YAHOO", "type": "method", "name": "log"}, {"url": "YAHOO.util.YAHOO.lang.html#method_merge", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "merge"}, {"url": "YAHOO.util.YAHOO.env.ua.html#property_mobile", "access": "", "host": "YAHOO.util.YAHOO.env.ua", "type": "property", "name": "mobile"}, {"url": "YAHOO.util.YAHOO.env.html#property_modules", "access": "", "host": "YAHOO.util.YAHOO.env", "type": "property", "name": "modules"}, {"url": "YAHOO.util.YAHOO.html#method_namespace", "access": "", "host": "YAHOO.util.YAHOO", "type": "method", "name": "namespace"}, {"url": "YAHOO.util.YAHOO.env.ua.html#property_opera", "access": "", "host": "YAHOO.util.YAHOO.env.ua", "type": "property", "name": "opera"}, {"url": "YAHOO.util.YAHOO.html#method_register", "access": "", "host": "YAHOO.util.YAHOO", "type": "method", "name": "register"}, {"url": "YAHOO.util.YAHOO.lang.html#method_substitute", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "substitute"}, {"url": "YAHOO.util.YAHOO.lang.html#method_trim", "access": "", "host": "YAHOO.util.YAHOO.lang", "type": "method", "name": "trim"}, {"url": "YAHOO.util.YAHOO.env.ua.html#property_webkit", "access": "", "host": "YAHOO.util.YAHOO.env.ua", "type": "property", "name": "webkit"}];
</script>
</body>
</html>
